package cn.zust.ly.EyExample.Ey07;

public class Main {
	public static void main(String[] args) {
		for (int i = 100; i < 1000; i++) {
			if (isGodeNum(i)) {
				System.out.println(i);
			}
		}
	}
	static boolean isGodeNum(int x) {
		int a = x/100;
		int b = (x-100*a)/10;
		int c = x%10;
		return x == a*a*a + b*b*b + c*c*c;
	}
}
